from alg846 import Solution

# 示例 1
hand1 = [1,2,3,6,2,3,4,7,8]
groupSize1 = 3
print("Test Case 1:", Solution().isNStraightHand(hand1, groupSize1))  # True

# 示例 2
hand2 = [1,2,3,4,5]
groupSize2 = 4
print("Test Case 2:", Solution().isNStraightHand(hand2, groupSize2))  # False

# 示例 3：来自 gen846.py 的数据
hand3 = [1, 2, 3, 6, 7, 8, 11, 12, 13, 16, 17, 18, 21, 22, 23]
groupSize3 = 3
print("Test Case 3:", Solution().isNStraightHand(hand3, groupSize3))  # True
